package com.snowRemovingUser.service.impl;

import com.snowRemovingUser.domain.SigningCustomer;
import com.snowRemovingUser.mapper.SigningCustomerMapper;
import com.snowRemovingUser.service.ISigningCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 气象服务签约客户Service业务层处理
 * 
 * @author fz
 * @date 2024-04-24
 */
@Service
public class SigningCustomerServiceImpl implements ISigningCustomerService 
{
    @Autowired
    private SigningCustomerMapper signingCustomerMapper;

    /**
     * 查询气象服务签约客户
     * 
     * @param signingCustomerId 气象服务签约客户主键
     * @return 气象服务签约客户
     */
    @Override
    public SigningCustomer selectSigningCustomerBySigningCustomerId(String signingCustomerId)
    {
        return signingCustomerMapper.selectSigningCustomerBySigningCustomerId(signingCustomerId);
    }

    /**
     * 查询气象服务签约客户列表
     * 
     * @param signingCustomer 气象服务签约客户
     * @return 气象服务签约客户
     */
    @Override
    public List<SigningCustomer> selectSigningCustomerList(SigningCustomer signingCustomer)
    {
        return signingCustomerMapper.selectSigningCustomerList(signingCustomer);
    }

    /**
     * 新增气象服务签约客户
     * 
     * @param signingCustomer 气象服务签约客户
     * @return 结果
     */
    @Override
    public int insertSigningCustomer(SigningCustomer signingCustomer)
    {
        return signingCustomerMapper.insertSigningCustomer(signingCustomer);
    }

    /**
     * 修改气象服务签约客户
     * 
     * @param signingCustomer 气象服务签约客户
     * @return 结果
     */
    @Override
    public int updateSigningCustomer(SigningCustomer signingCustomer)
    {
        return signingCustomerMapper.updateSigningCustomer(signingCustomer);
    }

    /**
     * 批量删除气象服务签约客户
     * 
     * @param signingCustomerIds 需要删除的气象服务签约客户主键
     * @return 结果
     */
    @Override
    public int deleteSigningCustomerBySigningCustomerIds(String[] signingCustomerIds)
    {
        return signingCustomerMapper.deleteSigningCustomerBySigningCustomerIds(signingCustomerIds);
    }

    /**
     * 删除气象服务签约客户信息
     * 
     * @param signingCustomerId 气象服务签约客户主键
     * @return 结果
     */
    @Override
    public int deleteSigningCustomerBySigningCustomerId(String signingCustomerId)
    {
        return signingCustomerMapper.deleteSigningCustomerBySigningCustomerId(signingCustomerId);
    }
}
